<?php defined('_JEXEC') or die;

jimport('joomla.application.component.view');

class WebideViewOption extends JView {

	public function display($tpl = null) {
		// load row from table
		//$this->items = $this->get('Items');
		// get pagination functions
		$this->form = $this->get('Form');
		parent::display($tpl);
		$this->addToolbar();
		$this->setDocument();
	}
	protected function addToolbar() {
		JToolBarHelper::title(JText::_('COM_WEBIDE_OPTIONS'), 'contact.png');
	}
	protected function setDocument() {
		$doc = JFactory::getDocument();
		// set page title
		$doc->setTitle('WebIDE - add option');		
		
		//$document->setTitle(($this->item->id < 1) ? JText::_('COM_HELLOWORLD_HELLOWORLD_CREATING') : JText::_('COM_HELLOWORLD_HELLOWORLD_EDITING'));
		
		//$document->addScript(JURI::root() . $this->script);
		
		//$document->addScript(JURI::root() . "/administrator/components/com_helloworld" . "/views/helloworld/submitbutton.js");
		
		//JText::script('COM_HELLOWORLD_HELLOWORLD_ERROR_UNACCEPTABLE');
	}	
}
